package datasource;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;

public class DataSource {
    public static void main(String[] args) throws Exception{
        BufferedReader br = new BufferedReader(new FileReader("/usr/local/soft/bigdata29/szt/ditie.txt"));
        BufferedWriter bw = new BufferedWriter(new FileWriter("/usr/local/soft/bigdata29/szt/dt.txt"));

        String line = null;
        while ((line=br.readLine())!=null){

            bw.write(line);
            bw.newLine();
            bw.flush();
        }
        System.out.println("数据产生完毕！");

        bw.close();
        br.close();
    }
}
